home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
dev
/
cross
/
GBDK-2.0.lha
/
GBDK
/
include
/
rand.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-11-14
|
518b
|
38 lines
#ifndef _RAND_H
#define _RAND_H
#include <types.h>
/*
* Random generator using the linear congruential method
*
* Author: Luc Van den Borre
*/
void
initrand(UWORD seed);
UBYTE
rand(void);
UWORD
randw(void);
/*
* Random generator using the linear lagged additive method
*
* Author: Luc Van den Borre
*
* Note that 'initarand()' calls 'initrand()' with the same seed value, and
* uses 'rand()' to initialize the random generator.
*/
void
initarand(UWORD seed);
UBYTE
arand(void);
#endif /* _GB_H */